layui.use(['element'],function () {
    var $=layui.jquery,element=layui.element;
    var path=window.location.pathname;
    var info="";
    if(path.indexOf("/uc/service")!=-1){
        info="/uc/service";
    }else if(path.indexOf("/uc/schedule")!=-1){
        info="/uc/schedule";
    }else if(path.indexOf("/uc/")!=-1){
        info="/uc/user";
    }
    else {
        info="/uc/service";
    }
    $(".layui-nav-item").each(function () {
       if($(this).children("a").attr("href").indexOf(info)!=-1){
           $(this).addClass("layui-this");
       } else {
           $(this).removeClass("layui-this");
       }
    });
});